<?php


namespace app\index\validate;


use think\Validate;

class uploadRule extends Validate
{
    protected $rule = [
        'accessory'=>['file','fileExt' => 'doc,docx', 'fileSize' => 500 * 1024],
    ];
    protected $message = [
        'accessory.file'=>'上传文件不能为空',
        'accessory.fileExt'=>'必须是传入word文件',
        'accessory.fileSize'=>'传入的文件不能超过500k',

    ];

    protected $scene = [
        'accessory' => ['accessory'],

    ];
}